﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SIAKADCORE.Models
{
    public class Jawaban
    {
        #region Constants
        public const int idLenngth = 5;
        public const string idPrefix = "JWB";
        public const string TableName = "[dbo].[jawaban]";

        public const string ColumnNameIdJawaban = "[id_jawaban]";
        public const string ColumnNameJawaban = "[jawaban]";
        #endregion 

        #region Fields
        private string idJawaban;
        private double namaJawaban;
        #endregion

        #region Properties
        public string IdJawaban
        {
            get { return this.idJawaban; }
            set { this.idJawaban = value; }
        }

        public double NamaJawaban
        {
            get { return this.namaJawaban; }
            set { this.namaJawaban = value; }
        }
        #endregion 

        #region Constructors
        public Jawaban(string idJawaban, double jawaban)
        {
            this.idJawaban = idJawaban;
            this.namaJawaban = jawaban;
        }

        #endregion 

        public override string ToString()
        {
            return string.Format ("ID_JAWABAN: {0} | JAWABAN: {1}", this.idJawaban, this.namaJawaban);
        } 



    }
}
